<?php
class coreController extends Controller
{
    public $action;
    public $registry;

    function __construct(){
        $this->registry = Registry::getInstance();
    }

    function json($arr)
    {
        ///header('Content-Type: application/json; charset=utf-8');
        header('Content-Type: text/x-json; charset=utf-8');
        //header('X-JSON: '.$myJsonData);
        header("Cache-control:no-cache");


        //echo json_encode($arr, JSON_FORCE_OBJECT);
        //fb(json_encode($result, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP ));

        echo json_encode($arr);

    } // --
}